<%--
  -	Date: 2012-03-27
  -
  - Copyright (C) 2012 Jawa Software. All rights reserved.
  -
--%>

<%@ page pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %>

<decorator:usePage id="decoratedPage" />

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>学习系统 : <decorator:title /></title>
    <link rel="stylesheet"  href="${ctx}/styles/bootstrap.css">
    <link rel="stylesheet"  href="${ctx}/styles/bootstrap-responsive.css">
    <link rel="stylesheet"  href="${ctx}/styles/global.css">
    
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    
    <link rel="shortcut icon" href="${ctx}/images/favicon.ico">
    
    <style type="text/css">
      body {
        padding-top: 55px;
        padding-bottom: 40px;
      }
    </style>
    <script src="${ctx}/scripts/jquery.js"></script>
    <script src="${ctx}/scripts/global.js"></script>
    <decorator:head />
</head>
<%
    String path = request.getContextPath();
    
    Long navID = decoratedPage.getLongProperty("meta.navID");
    Long pageID = decoratedPage.getLongProperty("meta.pageID");
    
    request.setAttribute("navID",  decoratedPage.getLongProperty("meta.navID"));
    request.setAttribute("pageID", decoratedPage.getLongProperty("meta.pageID"));
    request.setAttribute("hideSide", decoratedPage.getBooleanProperty("meta.hideSide"));

%>
<body>
   
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="brand" href="#">学习系统</a>
          <div class="nav-collapse collapse">
            <p class="navbar-text pull-right"><a href="#" class=""><i class="icon-user icon-white"></i> ${ADMIN_USER_KEY.fullName}</a> | <a href="${ctx }/logout.jsp">退出</a></p>
          </div>
        </div>
      </div>
    </div>
	
    <div class="container">

	  <header class="header" id="overview">
		  <div class="container">
		    <div class="navbar">
			    <div class="navbar-inner">
			       <a class="brand" href="${ctx}/admin/">首页</a>
			       <j:displayMenu id="nav" repository="MENUREPOSITORYKEY" headerClass="nav" cssClass="dropdown" activeClass="active" showTopMenu="true"></j:displayMenu>
			    </div>
			</div>    
		  </div>
	  </header>
       
      <div class="container">
		    <j:breadcrumb repository="MENUREPOSITORYKEY" cssClass="breadcrumb" activeClass="active"></j:breadcrumb>
		 	<c:if test="${not hideSide }">
			 <div class="row-fluid">
			 	<div class="span3">
			 	    <div class="accordion">
				 		<j:displaySubMenu id="sidenav" repository="MENUREPOSITORYKEY" headerClass="nav nav-list sidenav " subHeaderClass="nav nav-list accordion-group" cssClass="" activeClass="active" parentMenuId="${navID}"></j:displaySubMenu>
			 	    </div>
			 	</div>
			 	<div class="span9">
			 	    <decorator:body/>
			 	</div>
			 </div>
		 	</c:if>
		 	<c:if test="${hideSide }">
			 	<decorator:body/>
		 	</c:if>
		 	
	  </div>

      <hr>

      <footer class="footer">
        <div class="container">
	        <p>Copyright &copy; <a href="http://code.google.com/p/jawa-suite/" target="_blank">Jawa OpenSource Group</a>  2012</p>
        </div>
      </footer>

    </div>
    
</body>
</html>
